package cn.lcsjsxy.yxz.day15.abstractexercises;

public abstract class Employee {

    /*
    编写一个Employee类，声明为抽象类，
    包含如下三个属性:name，id，salary提供必要的构造器和抽象方法:work()
    */

    //
    private String name;
    private int id;
    private double salary;

    //gzq
    public Employee() {
    }
    public Employee(int id , String name,double salary) {
        this.id = id;
        this.name = name;
        this.salary = salary;
    }

    public abstract void work();

}
